<?php
require_once('../../config.php');
Doctrine::loadModels('../../models');

if( $_REQUEST["calender_id"])
{
	$calender_id = strip_tags($_REQUEST["calender_id"]);

	$q = Doctrine_Query::create();
	$q->update('AgentCalender')
          ->set('deleted', '1') 
          ->where('calender_id ='.$calender_id);
              
	$rows = $q->execute();          
}

?>